<?php
/*
 * 测试
 */
namespace app\index\controller;

use app\common\controller\IndexBase;
use think\facade\Session;
use think\facade\Db;


class Testing extends IndexBase
{

    protected function initialize()
    {
        parent::initialize();
    }

    //首页
    public function index()
    {
        //金价
       	$j_url = 'http://p.zbs6.com/ZhaoJin/Getgoldprice';
        $json = https_request($j_url);
        $jinjia = json_to_array($json);
        dump($jinjia);
    }



}